package com.k2fsa.sherpa.onnx

data class FeatureConfig(
    var sampleRate: Int = 16000,
    var featureDim: Int = 80,
    var lowFreq: Float = 20.0f,
    var highFreq: Float = -400.0f,
    var dither: Float = 0.00000f,
//    var frameShiftMs: Float  = 10.0f,
//    var frameLengthMs: Float  = 25.0f,
    // 相邻帧之间的时间间隔，每一帧长度是25ms,这个是训练的数据
    var frameShiftMs: Float  = 10.0f,
    var frameLengthMs: Float  = 25.0f,

)

fun getFeatureConfig(sampleRate: Int, featureDim: Int): FeatureConfig {
    return FeatureConfig(sampleRate = sampleRate, featureDim = featureDim)
}
